<?php if ($pg_list->num_rows() > 0) :?>
    <?php foreach ($pg_list->result() as $item) :?>
    <dd>
        <h6>
            <?php for ($i=1; $i<5; $i++) : ?>
                <i class="iconfont <?php if ($i<=$item->star) :?>active<?php endif;?>">&#xe623;</i>
            <?php endfor;?>
            <span><?php echo $item->star ?>星</span>
        </h6>
        <div class="ment-entry"><?php echo $item->content;?></div>
        <h5 class="flex">
            <img src="/skins/scenic/images/logo_i.png">
            <p><?php echo substr_cut($item->user_name) ?></p>
            <span class="flex-1"><?php echo $item->created_at ?></span>
        </h5>
        <?php if ($item->reply_content) :?>
            <div class="ment-reply">客服：<?php echo $item->reply_content;?></div>
        <?php endif;?>
    </dd>
    <?php endforeach;?>
<?php endif;?>